import request from '@/utils/request'

const {
  get: $get,
  post: $post,
  delete: $delete,
  download: $download,
  post_query: $post_query
} = request

// 查询流程定义列表
export const listDefinition = data => {
  return $get('/activiti/activiti/definition/list', data)
}

// 激活挂起流程定义
export const suspendOrActiveDefinition = data =>{
  return $post_query('/activiti/activiti/definition/suspendOrActiveDefinition', data)
}

// 删除流程定义
export const delDefinition = deploymentId =>{
  return $post('/activiti/activiti/definition/remove/'+deploymentId)
}

// 流程定义转成模型
export const convert2Model = data =>{
  return $post_query('/activiti/activiti/definition/convert2Model',data)
}

